Skip to content

fix(vue): Include missing UserProfileLink component inside <UserButton /> component#5128

Merged
wobsoriano merged 5 commits into
mainfrom
rob/eco-374-missing-custom-link-inside-userbutton-component-in-vue-sdk
Feb 11, 2025
Merged

fix(vue): Include missing UserProfileLink component inside <UserButton /> component#5128
wobsoriano merged 5 commits into
mainfrom
rob/eco-374-missing-custom-link-inside-userbutton-component-in-vue-sdk

Conversation

@wobsoriano

Copy link
Copy Markdown
Member

Description

The <UserButton /> component was missing the ability to add custom user profile links via <UserButton.UserProfileLink>.

The implementation is already available, but I forgot to include it in the exported component. We should be able to do this in this PR:

<script setup>
import { UserButton } from '@clerk/vue'
</script>

<template>
  <UserButton>
    <UserButton.UserProfileLink
      label="Homepage"
      url="/"
    >
      <template #labelIcon>
        <div>Icon</div>
      </template>
    </UserButton.UserProfileLink>
  </UserButton>
</template>

Resolves ECO-374

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Feb 10, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox 🛑 Canceled (Inspect) Feb 10, 2025 11:51pm

@changeset-bot

changeset-bot Bot commented Feb 10, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ca91f89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clerk/vue Patch
@clerk/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@wobsoriano
wobsoriano marked this pull request as ready for review February 10, 2025 23:48
@wobsoriano
wobsoriano enabled auto-merge (squash) February 10, 2025 23:57
@wobsoriano
wobsoriano merged commit 9b6102c into main Feb 11, 2025
@wobsoriano
wobsoriano deleted the rob/eco-374-missing-custom-link-inside-userbutton-component-in-vue-sdk branch February 11, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants